package org.apache.dolphinscheduler.api.service;

import java.util.List;

import org.apache.dolphinscheduler.dao.entity.UserGroupWorker;

import com.baomidou.mybatisplus.extension.service.IService;

public interface UserGroupWorkerService extends IService<UserGroupWorker> {

	List<UserGroupWorker> queryByGroupId(Integer userGroupId);
	
	List<UserGroupWorker> queryByWorkId(Integer workId);
	
	void saveUserGroupWork(Integer userGroupId, List<Integer> workIdList);
	
	void saveUserGroupWorkByWorkId(Integer workId, List<Integer> userGroupIds);
	
	void deleteByGroupId(Integer userGroupId);
	
	void deleteByWorkId(Integer workId);
	
	List<Integer> getWorkIdList(Integer userGroupId);
}
